<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>position_relative</title>
    <style>
        .div1{
            width: 100px;
            height: 100px;
            background: red;
            position: relative;
            left: 100px;
            top: 50px;
        }
        .div2{
            width: 100px;
            height: 100px;
            background: blue;
            position: relative;
            right: 50px;
            bottom: 60px;
        }
    </style>
</head>
<body>
    <div class="div1"></div>
    <div class="div2"></div>
</body>
</html>